package com.mooc.mymooc.dao;

import com.mooc.mymooc.pojo.Course;

import java.util.List;
import java.util.Map;

public interface CourseDao {
    public List<Course> findCourseById(Integer id);

    public List<Course> findCourseByIdd(Integer id);

    public Integer addFav_nums(Integer id);

    public Integer removeFav_nums(Integer id);

    public List<Course> findByPage(Map map);

    public List<Course> findAllCourse(Map map);

    public Integer countsCourse();

    public Course findCourseByIdDetail(Integer id);

    public Integer updateStudents(Integer id);

    public Integer addCourse(Course course);

    public List<Course> findAllCourseInBackGround(Course course);

    public Integer removeCourse(Integer id);

    public Integer updateCourse(Course course);

    public List<Course> findCourseByTeacherId(Integer id);

    public Integer addClickNums(Integer id);

    public Integer addClickNums_org(Integer id);

    public Integer addClickNums_teacher(Integer id);

    public List<Course> searchCourse(String name);
}
